local M = {}

M.cmd = { "ZkNew", "ZkNotes", "ZkTags", "ZkMatch" }

M.keys = {
  { "<leader>zn", "<Cmd>ZkNew { title = vim.fn.input('Title: ') }<cr>", desc = "Zk New" },
  { "<leader>zo", "<Cmd>ZkNotes { sort = { 'modified' } }<CR>", desc = "Zk Notes" },
  { "<leader>zt", "<Cmd>ZkTags<CR>", desc = "Zk Tags" },
  {
    "<leader>zf",
    "<Cmd>ZkNotes { sort = { 'modified' }, match = { vim.fn.input('Search: ') } }<CR>",
    desc = "Zk Search",
  },
  { "<leader>zg", ":'<,'>ZkMatch<CR>", mode = "x", desc = "Zk Match" },
  { "<leader>zb", "<Cmd>ZkBacklinks<CR>", desc = "Zk Backlinks" },
  { "<leader>zl", "<Cmd>ZkLinks<CR>", desc = "Zk Links" },
  { "<leader>zi", "<Cmd>ZkInsertLink<CR>", desc = "Zk Insert Links" },
  { "<leader>zd", "<Cmd>ZkNew { group = 'daily' }<CR>", desc = "Zk Diary" },
}

M.opts = { picker = "fzf_lua" }

return M
